package com._520it.crm.web.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com._520it.crm.domain.Client;
import com._520it.crm.service.IClientService;

@Controller
public class ClientController {
	@Autowired
	private IClientService service;

	@RequestMapping("/client/index")
	public String index() {
		return "client/index";
	}

	@RequestMapping("/client_selectAll")
	@ResponseBody
	public List<Client> selectAll(){
		return service.selectAll();
	}
}
